<template>
  <page-header-wrapper>
    <AWM-check-work
        ref="checkWork"
      ></AWM-check-work>
  </page-header-wrapper>
</template>

<script>
import { AWMCheckWork } from '@/components'
import moment from 'moment'
import { mapGetters } from 'vuex'

export default {
  data() {
    return {
      workData: [],
      showMoment: null,
      loading: true,
      total: {
        should: 0, // 应出勤
        lateNum: 0, // 迟到次数
        lateTime: 0, // 迟到时间
        rest: 0, // 休息
        absenteeism: 0, // 旷工
        workTime: 0, // 平均工时
      },
      work: {
        visible: false,
        confirmLoading: false,
        mdl: null,
        day: null,
      },
    }
  },

  components: {
    // DayTag,
    // WorkModal,
    AWMCheckWork
  },
  props: {},
  mounted() {
  },
  computed: {
  },
  watch: {},
  methods: {
  },
  filters: {
    dateFilter(a_value, a_data) {
      let showDate = a_value.format('YYYY-MM-DD') + ' 00:00:00'
      let it = a_data.filter((v) => v.date == showDate)[0] || {}
      return it
    },
  },
  destroyed() {},
}
</script>
<style lang='less' scoped>
.date-wrap {
  height: 100%;
  display: flex;
  align-items: center;
}
</style>